import axios from "axios";
/* 主地址 */
axios.defaults.baseURL = import.meta.env.VITE_BASE_URL;
/* 响应拦截 */
axios.interceptors.response.use(
    function (response) {
        return response.data
    },
    function (error) {
        return Promise.reject(error)
    }
)
function Http({ url }) {
    return axios({
        url,
        method: "get"
    })
}

export { Http }